package com.jintoufs.dao.ad;

import com.jintoufs.dao.QueryFilters;
import com.jintoufs.domain.ad.Ad;

import java.util.List;
import java.util.Map;

public interface AdMapper {
    int deleteByPrimaryKey(String id);

    int insert(Ad record);

    int insertSelective(Ad record);

    int updateByPrimaryKeySelective(Ad record);


    int updateByPrimaryKey(Ad record);

    List<Map<String,Object>> queryByParams(Map<String, Object> params);

    List<Ad> getByFilter(QueryFilters filters);

    Ad queryByPrimaryKey(Integer id);

    Ad getLastedAd();

}